package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:char(32)"`
}
type Shop struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"`
	Content string `gorm:"type:text"`
	Img     string `gorm:"type:varchar(255)"`
}
type Comment struct {
	gorm.Model
	Uid     int    `gorm:"type:int"`
	Sid     int    `gorm:"type:int"`
	Content string `gorm:"type:text"`
}
